package com.bawei.model_sevent.Activity.MVP;

import android.os.Bundle;
import android.os.PersistableBundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

/**
 * 时间：2021/11/10 14:52.
 * 类名：View
 * 作用：Model_sevent
 * 作者:张羽_zy
 */
public abstract class View<P extends P_Presenter> extends AppCompatActivity implements V_View {
    protected P presenter;
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (presenter!=null)
        {
            presenter.DesTroy();
            presenter=null;
        }
    }
}
